﻿/// <reference path="../libs/underscore.js" />
/// <reference path="../libs/angular.js" />

//Routes definition
var mainModule = angular.module("bookStore", ['bookStoreServices'])
	                .config(["$routeProvider", function ($routeProvider) {
		                $routeProvider
			                .when("/",
                            { templateUrl: "Admin_Client/scripts/partials/indexPage.html", controller: MainController })
                            .when("/users",
                            { templateUrl: "Admin_Client/scripts/partials/all-users.html", controller: UsersController })
                            .when("/users/:id",
                            { templateUrl: "Admin_Client/scripts/partials/user-details.html", controller: UserDetailsController })
			                .when("/create/store",
                            { templateUrl: "Admin_Client/scripts/partials/create-store.html", controller: CreateStoreController })
			                .when("/create/book",
                            { templateUrl: "Admin_Client/scripts/partials/create-book.html", controller: CreateBookController })
			                .otherwise(
                            { redirectTo: "/" });
	                }]);

